package com.singzi.testCase;

import org.junit.Test;

public class SwitchTest {

    @Test
    public void test01() {//2
            System.out.println("value="+switchit(4));//3
    }//4
    public static int switchit(int x) {
            int j=1;
            switch (x) {
                case 1:j++;
                case 2:j++;
                case 3:j++;
                case 4:j++;
                case 5:j++;
                default:j++;
            }
            return j+x;
    }

}
